home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGNG_C / CUG187.LZH / SKPBLK.C < prev    next >
C/C++ Source or Header  |  1985-12-31  |  885b  |  25 lines

  1. /*@*****************************************************/
  2. /*@                                                    */
  3. /*@ skpblk - skip to the next non-blank value.         */
  4. /*@        A non-blank or NULL will terminate it.      */
  5. /*@                                                    */
  6. /*@   Usage:     skpblk(cbuf);                         */
  7. /*@       where cbuf is a pointer to characters.       */
  8. /*@                                                    */
  9. /*@   Returns a pointer to the char which terminated   */
  10. /*@      the scan (i.e. the non-blank or NULL).        */
  11. /*@                                                    */
  12. /*@*****************************************************/
  13.  
  14. #define NULL 0x00
  15.  
  16.  
  17. char *skpblk(cbuf)
  18. char *cbuf;
  19. {
  20.         /* skip to next non-blank in buffer */
  21.     while((*cbuf == ' ') && (*cbuf != NULL))
  22.         cbuf++;
  23.     return (cbuf);
  24. }
  25.